﻿package com.bwie.dto;

public class Person {
	private int id;
	private String name;
	private Integer age;
	
	
	//爱好
	private String hobby;

	//公司的id
	private int cid;
	//职位的id
	private int pid;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public String getHobby() {
		return hobby;
	}
	public void setHobby(String hobby) {
		this.hobby = hobby;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public int getPid() {
		return pid;
	}
	public void setPid(int pid) {
		this.pid = pid;
	}
	public Person(int id, String name, Integer age, String hobby, int cid,
			int pid) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.hobby = hobby;
		this.cid = cid;
		this.pid = pid;
	}
			
	public Person() {
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Person [id=" + id + ", name=" + name + ", age=" + age
				+ ", hobby=" + hobby + ", cid=" + cid + ", pid=" + pid + "]";
	}
	
	
}
